import request from '@/utils/request'

// 查询房型设置列表
export function listRoomtype(query) {
  return request({
    url: '/system/roomtype/list',
    method: 'get',
    params: query
  })
}

// 查询房型设置详细
export function getRoomtype(id) {
  return request({
    url: '/system/roomtype/' + id,
    method: 'get'
  })
}

// 新增房型设置
export function addRoomtype(data) {
  return request({
    url: '/system/roomtype',
    method: 'post',
    data: data
  })
}

// 修改房型设置
export function updateRoomtype(data) {
  return request({
    url: '/system/roomtype',
    method: 'put',
    data: data
  })
}

// 删除房型设置
export function delRoomtype(id) {
  return request({
    url: '/system/roomtype/' + id,
    method: 'delete'
  })
}
